﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AjaxControlToolkit;
using CoolCode.Services;
using CoolCode.Entities;
using CoolCode.Security;

namespace CoolCode.Web.UI
{
    public partial class _Default : AuthPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                // InitialPage();
            }
           this.Content.Attributes["src"] = "Views/Admin";
            this.Title = Config.CompanyName;
        }


        protected override bool CheckUserRole()
        {
            if (User == null || string.IsNullOrEmpty(User.Identity.Name))
            {
                this.ViewLogin();
                return false;
            }
            return true;
        }
    }
}
